package com.cowcowit.springcloud.controller;

import com.cowcowit.springcloud.service.IMessageProvider;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author whboy
 * @create {YEAR}-{MONTH}-{DAY} {TIME}
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider messageProvider;
    @GetMapping(value = "/sendMessage")
    public String sendMessage() {
        return messageProvider.send();
    }
}
